﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="AddUser.aspx.cs" Inherits="BankSysDemo.WebUI.AddUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../Scripts/jquery-3.7.1.js"></script>
    <script>
        $(function () {
            $("#content_TextBox1").keydown(function (event) {
                if (event.which === 13) {
                    event.preventDefault();//取消默认的回车事件
                    var cno = $("#content_TextBox1").val().split("=")[0];
                    $("#content_TextBox1").val(cno +"88")
                }
            });
            $("#content_TextBox2").keydown(function (event) {
                if (event.which === 13) {
                    event.preventDefault();//取消默认的回车事件
                    var cno = $("#content_TextBox2").val().split("=")[0];
                    var res = "";
                    for (var index = 0; index < cno.length; index++) {
                        if (index != 0 && index % 4 == 0) {
                            res += " ";
                            res += cno[index];
                        }
                        else {
                            res += cno[index];
                        }
                    }
                    $("#content_TextBox2").val(res)
                }
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <form runat="server">
        <p></p>
        <div class="card">
            <div class="card-header">
                开户
            </div>
            <div class="card-body">
                <div class="input-group flex-nowrap">
                    <span class="input-group-text" style="width:80px;">客户号</span>
                    <asp:TextBox ID="TextBox1" runat="server" CssClass="form-control" placeholder="客户号"></asp:TextBox>
                    <%--<input type="text" class="form-control" placeholder="客户号" aria-label="Username" aria-describedby="addon-wrapping">--%>
                </div>
                <p></p>
                <div class="input-group flex-nowrap">
                    <span class="input-group-text" style="width:80px;">卡号</span>
                    <asp:TextBox ID="TextBox2" runat="server" CssClass="form-control" placeholder="卡号"></asp:TextBox>
                    <%--<input type="text" class="form-control" placeholder="客户号" aria-label="Username" aria-describedby="addon-wrapping">--%>
                </div>
                <p></p>
                <div class="input-group flex-nowrap">
                    <span class="input-group-text" style="width:80px;">姓名</span>
                    <asp:TextBox ID="TextBox3" runat="server" CssClass="form-control" placeholder="姓名"></asp:TextBox>
                    <%--<input type="text" class="form-control" placeholder="客户号" aria-label="Username" aria-describedby="addon-wrapping">--%>
                </div>
                <p></p>
                <div class="input-group flex-nowrap">
                    <span class="input-group-text" style="width:80px;">电话</span>
                    <asp:TextBox ID="TextBox4" runat="server" CssClass="form-control" placeholder="电话"></asp:TextBox>
                    <%--<input type="text" class="form-control" placeholder="客户号" aria-label="Username" aria-describedby="addon-wrapping">--%>
                </div>
                <p></p>
                <div class="input-group flex-nowrap">
                    <span class="input-group-text" style="width:80px;">地址</span>
                    <asp:TextBox ID="TextBox5" runat="server" CssClass="form-control" placeholder="地址"></asp:TextBox>
                    <%--<input type="text" class="form-control" placeholder="客户号" aria-label="Username" aria-describedby="addon-wrapping">--%>
                </div>
                <p></p>
                <div class="input-group flex-nowrap">
                    <span class="input-group-text" style="width:80px;">金额</span>
                    <asp:TextBox ID="TextBox6" runat="server" CssClass="form-control" placeholder="金额"></asp:TextBox>
                    <%--<input type="text" class="form-control" placeholder="客户号" aria-label="Username" aria-describedby="addon-wrapping">--%>
                </div>
                <p></p>
                <div class="input-group flex-nowrap">
                    <span class="input-group-text" style="width:80px;">密码</span>
                    <asp:TextBox ID="TextBox7" runat="server" CssClass="form-control" placeholder="密码" TextMode="Password"></asp:TextBox>
                    <%--<input type="text" class="form-control" placeholder="客户号" aria-label="Username" aria-describedby="addon-wrapping">--%>
                </div>
                <p></p>
                <asp:Button ID="Button1" runat="server" Text="提交" CssClass="btn btn-primary col-2" OnClick="Button1_Click" />
                <%--<button type="button" class="btn btn-primary col-2">提交</button>--%>
                <%--<button type="button" class="btn btn-secondary col-2">重置</button>--%>
                <input id="Reset1" type="reset" value="重置" class="btn btn-secondary col-2" />
            </div>
        </div>
    </form>
</asp:Content>
